// pages/goodslist/goodslist.js
var app = getApp();
var ApiUrl = app.globalData.ApiUrl;
Page({
  data:{
    sousuoT:''
  },
  onLoad:function(options){
    var that = this;
    var list = wx.getStorageSync('share_tips_list')
    this.setData({
      sousuoT: list
    })
    // 页面初始化 options为页面跳转所带来的参数
    wx.request({
      url: ApiUrl+'index.php?act=index&op=search_key_list',
      data: {},
      method: 'GET', 
      success: function(res){

        that.setData({
            result: res.data.datas.list
        })

      },
    })   
  },
  formSubmit: function(e) { 
     
    var that = this;  
    var formData = e.detail.value.keyword;   
    
     wx.navigateTo({
       url: '/pages/product_list/product_list?keyword=' + formData
    })
     
  },  
 
})
